import time
def get_time():
    return time.ctime()

def app(env):
    path_info = env['PATH_INFO']
    print("框架收到动态资源请求 %s" % path_info)
    if path_info == '/gettime.html':
        return '200OK', [("server", "APP1.1")], get_time()
    else:
        return '200OK', [("server", "APP1.1")],'hello world'
